/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package com.uccart_project.model;

import java.io.Serializable;
import javax.persistence.Basic;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.NamedQueries;
import javax.persistence.NamedQuery;
import javax.persistence.Table;
import javax.xml.bind.annotation.XmlRootElement;

/**
 *
 * @author Ronny
 */
@Entity
@Table(name = "PLANILLA")
@XmlRootElement
@NamedQueries({
    @NamedQuery(name = "Planilla.findAll", query = "SELECT i FROM Planilla i"),
    @NamedQuery(name = "Planilla.findByIdEmpleado", query = "SELECT i FROM Planilla i WHERE i.IdEmpleado = :IdEmpleado"),
    @NamedQuery(name = "Planilla.findByNombre", query = "SELECT i FROM Planilla i WHERE i.Nombre = :Nombre"),
    @NamedQuery(name = "Planilla.findByApellido", query = "SELECT i FROM Planilla i WHERE i.Apellido = :Apellido"),
    @NamedQuery(name = "Planilla.findByCorreo", query = "SELECT i FROM Planilla i WHERE i.Correo = :Correo"),
    @NamedQuery(name = "Planilla.findByNumeroTel", query = "SELECT i FROM Planilla i WHERE i.NumeroTel = :NumeroTel"),
    @NamedQuery(name = "Planilla.findByDiaContratacion", query = "SELECT i FROM Planilla i WHERE i.DiaContratacion = :DiaContratacion"),
    @NamedQuery(name = "Planilla.findBySalario", query = "SELECT i FROM Planilla i WHERE i.Salario = :Salario")})

public class Planilla implements Serializable {
    private static final long serialVersionUID = 1L;
    @Id
    @Basic(optional = false)
    @Column(name = "ID_EMPLEADO")
    private Integer IdEmpleado;
    @Column(name = "NOMBRE")
    private String Nombre;
    @Column(name = "APELLIDO")
    private String Apellido;   
    @Column(name = "CORREO")
    private String Correo;
    @Column(name = "NUMERO_TEL")
    private String NumeroTel;
    @Column(name = "DIA_CONTRATACION")
    private String DiaContratacion;
    @Column(name = "SALARIO")
    private Integer Salario;

    public Planilla(){
    }
    
    public Planilla(Integer IdEmpleado){
        this.IdEmpleado = IdEmpleado;
    }
    
    public void setIdEmpleado(Integer IdEmpleado){
        this.IdEmpleado=IdEmpleado;
    }
    
    public Integer getIdEmpleado(){
        return IdEmpleado;
    }
    
    public void setNombre(String Nombre){
        this.Nombre=Nombre;
    }
    
    public String getNombre(){
        return Nombre;
    }
    
    public void setApellido(String Apellido){
        this.Apellido=Apellido;
    }
    
    public String getApellido(){
        return Apellido;
    } 
    
    public void setCorreo(String Correo){
        this.Correo=Correo;
    }
    
    public String getCorreo(){
        return Correo;
    } 
    
    public void setNumeroTel(String NumeroTel){
        this.NumeroTel=NumeroTel;
    }
    
    public String getNumeroTel(){
        return NumeroTel;
    } 
    
    public void setDiaContratacion(String DiaContratacion){
        this.DiaContratacion=DiaContratacion;
    }
    
    public String getDiaContratacion(){
        return DiaContratacion;
    } 
    
    public void setSalario(Integer Salario){
        this.Salario=Salario;
    }
    
    public Integer getSalario(){
        return Salario;
    } 

    @Override
    public int hashCode() {
        int hash = 0;
        hash += (IdEmpleado != null ? IdEmpleado.hashCode() : 0);
        return hash;
    }

    @Override
    public boolean equals(Object object) {
        // TODO: Warning - this method won't work in the case the id fields are not set
        if (!(object instanceof Planilla)) {
            return false;
        }
        Planilla other = (Planilla) object;
        if ((this.IdEmpleado == null && other.IdEmpleado != null) || (this.IdEmpleado != null && !this.IdEmpleado.equals(other.IdEmpleado))) {
            return false;
        }
        return true;
    }

    @Override
    public String toString() {
        return "com.uccart_project.model.Planilla[ IdEmpleado=" + IdEmpleado + " ]";
    }
    
}
